package com.ltedu.system.domain.vo;

import com.ltedu.common.validate.Create;
import com.ltedu.common.validate.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: SysRoleVO
 * @Auther: Jerry
 * @Date: 2020/11/14 12:22
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class SysRoleVO implements Serializable {

    private static final long serialVersionUID = -7288428936952231219L;
    @NotNull(groups = Update.class, message = "id不能为空")
    private Long id;
    /**角色名称*/
    @NotEmpty(groups = Create.class, message = "角色名称不能为空")
    @NotEmpty(groups = Update.class, message = "角色名称不能为空")
    private String roleName;
    /**角色名称*/
    @NotEmpty(groups = Create.class, message = "权限字符不能为空")
    @NotEmpty(groups = Update.class, message = "权限字符不能为空")
    private String roleKey;
    /**状态(1:正常，0:禁用)*/
    @NotNull(groups = Create.class, message = "状态不能为空")
    @NotNull(groups = Update.class, message = "状态不能为空")
    private Integer state;
    /**备注*/
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleKey() {
        return roleKey;
    }

    public void setRoleKey(String roleKey) {
        this.roleKey = roleKey;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
